
from flask_restful import fields

user_fields = {
    'uid': fields.Integer,
    'account': fields.String,
    'user_name': fields.String
}


channel_fields = {
    'cid': fields.Integer,
    'cname': fields.String,
}


user_channel_fields = {
    'cid': fields.Integer,
    'uid': fields.Integer,
    'ctime': fields.DateTime
}

news_fields = {
    'user_id': fields.Integer,
    'nid': fields.String,
    'title': fields.String,
    'content': fields.String,
    'channel_id': fields.String,
}
